﻿<%@page import="com.mmy.domain.restaurant.TRestaurantBase"%>
<%@page import="com.mmy.domain.restaurant.VRestaurantBase"%>
<%@page import="com.mmy.domain.scenic.TScenicBase"%>
<%@page import="com.mmy.domain.constzone.TConstZone"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>餐馆信息</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
						<div class="row">
							<div class="span-5 col">
								<h1>餐馆管理</h1>
							</div>	
							
						 </div >
					</div>
				</header>
				<section class="container">
					
					
					<!-- 新建餐馆基本信息 -->
					<div class="information" >
					<form action="savecreaterestaurantbase" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>新建餐馆基本信息
						</h4>
					<div class="input-container">
					<table class="info-table">
					<tr>
					<th><label for="RestaurantName">餐馆名称</label></th>
					<td colspan="2">
						<input type="text" id="RestaurantName" name="RestaurantName" required="required"/><span class="mustWrite">*</span>
					</td>
					<th><label for="RestaurantRate">餐馆星级</label></th>
					<td colspan="2">
					<input type="text" id="RestaurantRate" name="Rate" required="required"/><span class="mustWrite">*</span>  		 
					</td>
					</tr>
					<tr>
					
					<th><label for="RestaurantZoneID">区域</label></th>
					<td colspan="2">				
					<select class="select-height" id="RestaurantZoneID" name="ZoneProvinceID" required="required">
					<c:forEach var="tConstZoneProvince" items="${newTConstZoneProvince}">
						<option value="${tConstZoneProvince.getZoneID()}">${tConstZoneProvince.getZoneName()}</option>
						</c:forEach>
						</select>
					<select class="select-height"  name="ZoneCityID" required="required">
					<c:forEach var="tConstZone" items="${newTConstZone}">
						<option value="${tConstZone.getZoneID()}">${tConstZone.getZoneName()}</option>
						</c:forEach>
						</select> 
						<select class="select-height" id="ZoneID" name="ZoneID" required="required">
					<c:forEach var="tConstZoneDistrict" items="${newTConstZoneDistrict}">
						<option value="${tConstZoneDistrict.getZoneID()}">${tConstZoneDistrict.getZoneName()}</option>
						</c:forEach>
						</select><span class="mustWrite">*</span>
					
					</td>
					<th><label for="RestaurantAddress">地址</label></th>
					<td colspan="2">
						<input type="text" id="RestaurantAddress" name="Address" required="required"/><span class="mustWrite">*</span>
					</td>
				</tr>
				<tr >
					<th><label for="RestaurantContact">联系人</label></th>
					<td colspan="2">
						<input type="text" id="RestaurantContact" name="Contact" required="required"/><span class="mustWrite">*</span>
					</td>
					
					<th><label for="RestaurantTel">联系电话</label></th>
					<td colspan="2">
						<input type="text" id="RestaurantTel" name="Tel" required="required"/><span class="mustWrite">*</span>  
					</td>
					
				</tr>
				
				<tr >
<th><label for="RestaurantScenicName">景点名称</label></th>
					<td >				
					<select class="select-height" id="RestaurantScenicName" name="ScenicID" required="required">
					<c:forEach var="tScenicBaselist" items="${scenicBaselist}">
						<option value="${tScenicBaselist.getScenicID()}">${tScenicBaselist.getScenicName()}</option>
						</c:forEach>
						</select>
</td>
					<th><label for="RestaurantNumber">餐桌数量</label></th>
					<td >
						<input type="text" id="RestaurantNumber" name="Number" required="required"/><span class="mustWrite">*</span>
					</td>
					
					<th><label  for="RestaurantRoom">包房数量</label></th>
					<td >
						<input type="text" id="RestaurantRoom" name="Room" required="required"/><span class="mustWrite">*</span>
					
					</td>
					
				</tr>
				<tr>
					<th><label for=RestaurantIntro">餐馆介绍</label></th>
					<td colspan="5">
						
						<textarea id="RestaurantIntro" name="Intro" required="required"></textarea><span class="mustWrite">*</span>
					</td>
					
					</tr>
					
						<tr>
					<th><label for="RestaurantImg">餐馆图片</label></th>
					<td colspan="5">
						<input type="file" id=RestaurantImg" name="ImgPath" /><span class="mustWrite">*</span>
					</td>
					
					</tr>
					 
					
			
				<tr>
					<th><label for="RestaurantMemo">备注</label></th>
					<td colspan="5">
						<textarea id="RestaurantMemo" name="Memo" required="required"></textarea>
					</td>
					
				</tr>
				
			</table>
			<center>
				<input type="submit" class="btn" value="保存" />
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
			</center> 
			</div>
			</form>
			</div>
			</section>
			</article>
			</main>
			<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>

</body>

</html>